Fixes bug #787467.
Formats based on custom primaries provided by applications are unknown to babl
at launch, we still want to keep the data though, since this list of most used
fishes first is useful resource in combination with the warnings about missing
fast paths.
}
break;
case '\t':
- if (strchr (token, '='))
+ if (to_format && strchr (token, '='))
{
char seps2[] = " ";
char *tokp2;
token2 = strtok_r (NULL, seps2, &tokp2);
}
}
- else
+ else if (to_format)
{
Babl *conv = (void*)babl_db_find(babl_conversion_db(), &token[1]);
if (!conv)
if (!from_format)
{
from_format = (void*)babl_db_find(babl_format_db(), token);
- if (!from_format)
- return;
}
else
{
to_format = (void*)babl_db_find(babl_format_db(), token);
- if (!to_format)
- return;
}
break;
}